← Back
Editing: index-legacy495.js
!function(){function e(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,r,a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",u=a.toStringTag||"@@toStringTag";function c(e,a,o,u){var c=a&&a.prototype instanceof l?a:l,s=Object.create(c.prototype);return n(s,"_invoke",function(e,n,a){var o,u,c,l=0,s=a||[],f=!1,p={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,n){return o=e,u=0,c=t,p.n=n,i}};function d(e,n){for(u=e,c=n,r=0;!f&&l&&!a&&r<s.length;r++){var a,o=s[r],d=p.p,y=o[2];e>3?(a=y===n)&&(c=o[(u=o[4])?5:(u=3,3)],o[4]=o[5]=t):o[0]<=d&&((a=e<2&&d<o[1])?(u=0,p.v=n,p.n=o[1]):d<y&&(a=e<3||o[0]>n||n>y)&&(o[4]=e,o[5]=n,p.n=y,u=0))}if(a||e>1)return i;throw f=!0,n}return function(a,s,y){if(l>1)throw TypeError("Generator is already running");for(f&&1===s&&d(s,y),u=s,c=y;(r=u<2?t:c)||!f;){o||(u?u<3?(u>1&&(p.n=-1),d(u,c)):p.n=c:p.v=c);try{if(l=2,o){if(u||(a="next"),r=o[a]){if(!(r=r.call(o,c)))throw TypeError("iterator result is not an object");if(!r.done)return r;c=r.value,u<2&&(u=0)}else 1===u&&(r=o.return)&&r.call(o),u<2&&(c=TypeError("The iterator does not provide a '"+a+"' method"),u=1);o=t}else if((r=(f=p.n<0)?c:e.call(n,p))!==i)break}catch(r){o=t,u=1,c=r}finally{l=1}}return{value:r,done:f}}}(e,o,u),!0),s}var i={};function l(){}function s(){}function f(){}r=Object.getPrototypeOf;var p=[][o]?r(r([][o]())):(n(r={},o,function(){return this}),r),d=f.prototype=l.prototype=Object.create(p);function y(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,n(e,u,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=f,n(d,"constructor",f),n(f,"constructor",s),s.displayName="GeneratorFunction",n(f,u,"GeneratorFunction"),n(d),n(d,u,"Generator"),n(d,o,function(){return this}),n(d,"toString",function(){return"[object Generator]"}),(e=function(){return{w:c,m:y}})()}function n(e,t,r,a){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}n=function(e,t,r,a){if(t)o?o(e,t,{value:r,enumerable:!a,configurable:!a,writable:!a}):e[t]=r;else{function u(t,r){n(e,t,function(e){return this._invoke(t,r,e)})}u("next",0),u("throw",1),u("return",2)}},n(e,t,r,a)}function t(e,n,t,r,a,o,u){try{var c=e[o](u),i=c.value}catch(e){return void t(e)}c.done?n(i):Promise.resolve(i).then(r,a)}function r(e){return function(){var n=this,r=arguments;return new Promise(function(a,o){var u=e.apply(n,r);function c(e){t(u,a,o,c,i,"next",e)}function i(e){t(u,a,o,c,i,"throw",e)}c(void 0)})}}System.register(["./base-lib-legacy.js?v=VERSION_NUMBER","./validator-legacy.js?v=VERSION_NUMBER","./utils-lib-legacy.js?v=VERSION_NUMBER","./firewall-legacy.js?v=VERSION_NUMBER","./index-legacy317.js?v=VERSION_NUMBER","./store-legacy8.js?v=VERSION_NUMBER","./__commonjsHelpers__-legacy.js?v=VERSION_NUMBER","./index-legacy105.js?v=VERSION_NUMBER","./column-legacy.js?v=VERSION_NUMBER","./store-legacy5.js?v=VERSION_NUMBER"],function(n,t){"use strict";var a,o,u,c,i,l,s,f,p,d,y,v,m,h,b,g,_,j,w,x,O,V,S,T,k;return{setters:[function(e){a=e.c,o=e.s,u=e.k,c=e.r,i=e.p,l=e.q,s=e.v,f=e.e,p=e.A,d=e.x,y=e.B,v=e.y,m=e.al,h=e.a9,b=e.a7},function(e){g=e._},function(e){_=e.u,j=e.I,w=e.j,x=e.b,O=e.e},function(e){V=e.aV,S=e.aW},function(e){T=e.H},function(e){k=e.H},null,null,null,null],execute:function(){var t={class:"p-[2rem]"},G={class:"tip"},P=a({__name:"index",emits:["close"],setup:function(n,a){var O=a.expose,P=a.emit,F=T(),C=k(),E=o(F).repairTypeActive,H=o(C).isMalwareConfirm,U=P,q=_().payment.value.authType,A=x(),I=u({cycle:"0",channel:[],status:!1}),N=c(),B=c(!1),D=function(){var n=r(e().m(function n(){var t,r,a,o=arguments;return e().w(function(e){for(;;)switch(e.n){case 0:return t=o.length>0&&void 0!==o[0]&&o[0],e.n=1,V();case 1:r=e.v,a=r.data,I.cycle=a.cycle,I.channel=""===a.channel?[]:a.channel.split(","),I.status=!!a.status,t&&A.success("刷新成功");case 2:return e.a(2)}},n)}));return function(){return n.apply(this,arguments)}}(),M=function(){var n=r(e().m(function n(){var t;return e().w(function(e){for(;;)switch(e.n){case 0:if("ltd"===q){e.n=1;break}return e.a(2,A.error("抱歉!该功能为企业版专享功能!"));case 1:if(I.channel=I.channel.filter(function(e){return e}),(t=I.channel.join(","))||!I.status){e.n=2;break}return A.error("请选择告警方式"),e.a(2);case 2:return e.n=3,N.value.validate();case 3:j({loading:B,request:S({day:Number(I.cycle),channel:t,status:I.status?1:0}),message:!0,success:function(e){e.status&&(D(),"overview"===E.value&&(H.value=!0,C.capabilitySwitch.vul_scan.status=I.status,C.getSafeOverviewData()),U("close"))}});case 4:return e.a(2)}},n)}));return function(){return n.apply(this,arguments)}}();return O({onConfirm:M}),i(function(){D()}),function(e,n){var r=m,a=h,o=w,u=g,c=b;return l(),s("div",t,[f(c,{model:d(I),ref_key:"safeScanForm",ref:N,disabled:d(B)},{default:p(function(){return[f(a,{label:"自动扫描"},{default:p(function(){return[f(r,{modelValue:d(I).status,"onUpdate:modelValue":n[0]||(n[0]=function(e){return d(I).status=e})},null,8,["modelValue"])]}),_:1}),f(a,{label:"周期",prop:"cycle"},{default:p(function(){return[f(o,{class:"!w-[14rem]",modelValue:d(I).cycle,"onUpdate:modelValue":n[1]||(n[1]=function(e){return d(I).cycle=e}),min:0,type:"number",textType:"天"},{append:p(function(){return n[4]||(n[4]=[y(" 天 ")])}),_:1},8,["modelValue"])]}),_:1}),f(a,{label:"告警方式",prop:"give"},{default:p(function(){return[f(u,{class:"!w-[36rem]",modelValue:d(I).channel,"onUpdate:modelValue":n[2]||(n[2]=function(e){return d(I).channel=e}),limit:["sms","wx_account"]},null,8,["modelValue"])]}),_:1})]}),_:1},8,["model","disabled"]),v("div",G,[v("ul",null,[v("li",null,[n[5]||(n[5]=y(" 点击配置后状态未更新,尝试点击【 ")),v("span",{class:"text-[#20a53a] hover:text-[#1d9534] cursor-pointer",onClick:n[3]||(n[3]=function(e){return D(!0)})},"手动刷新"),n[6]||(n[6]=y(" 】 "))])])])])}}});n("default",O(P,[["__scopeId","data-v-be713e21"]]))}}})}();
Save File
Cancel